package com.wehotel.weschedule.controller;

import com.wehotel.weschedule.service.MarketingPointService;
import io.swagger.annotations.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api("测试控制类")
@RestController
@RequestMapping("/test")
public class TestController {
    @Autowired
    MarketingPointService marketingPointService;

    @ApiOperation("测试接口")
    @GetMapping("/test/f5")
//    @ApiImplicitParam(name = "", value = "N个用户信息", dataType = "int")
    @ApiImplicitParams({
            @ApiImplicitParam(name="test1",value = "测试参数1",required = true,paramType ="form"),
            @ApiImplicitParam(name="test2",value = "测试参数2",required = false,paramType ="form")
    })
//    @ApiResponse(code = 200,message = "成功",response = String.class)
    public String f5(Integer  test1,Integer test2){
        marketingPointService.sendPoints(null);
        return "hello world.";
    }

    @ApiOperation("测试接口2")
    @GetMapping("/test/f52")
//    @ApiImplicitParam(name = "", value = "N个用户信息", dataType = "int")
    @ApiImplicitParams({
            @ApiImplicitParam(name="test1",value = "测试参数1",required = true,paramType ="form"),
            @ApiImplicitParam(name="test2",value = "测试参数2",required = false,paramType ="form")
    })
//    @ApiResponse(code = 200,message = "成功",response = String.class)
    public String f52(Integer  test1,Integer test2){
        return "hello world.";
    }

}

